﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;


using UbicaTuReu.WCF.Dominio;
using System.ServiceModel.Web;


namespace UbicaTuReu.WCF
{
    
    [ServiceContract]
    public interface ISalasRest
    {
        [OperationContract]
        [WebInvoke(Method = "POST", UriTemplate = "SalasRest", ResponseFormat = WebMessageFormat.Json)]
        Sala CrearSala(Sala salaACrear);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "SalasRest/{SalaID}", ResponseFormat = WebMessageFormat.Json)]
        Sala ObtenerAlumno(string SalaID);

        [OperationContract]
        [WebInvoke(Method = "PUT", UriTemplate = "SalasRest", ResponseFormat = WebMessageFormat.Json)]
        Sala ModificarAlumno(Sala salaAModificar);


        [OperationContract]
        [WebInvoke(Method = "DELETE", UriTemplate = "SalasRest", ResponseFormat = WebMessageFormat.Json)]
        void EliminarSalas(string codigo);

        [OperationContract]
        [WebInvoke(Method = "GET", UriTemplate = "SalasRest", ResponseFormat = WebMessageFormat.Json)]
        List<Sala> ListaSalas();
    }
}
